import React, { Component,PureComponent } from 'react'
import './index.css'
import {ObjectEqual} from '../utils/helper'
export default class Task extends PureComponent {
  // shouldComponentUpdate(nextProps,nextState){
  //   console.log('task是否需要渲染')
  //   if(
  //     ObjectEqual(nextProps,this.props) &&  ObjectEqual(nextState,this.state)
  //   ){
  //     return false
  //   }
  //   return true
  // }
  render() {
    console.log('更新')
    return (
      <li className={this.props.isFinish ?'finish':''} >

        {this.props.name}
      </li>
    )
  }
}
